package com.jfree.api.controller;


import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * @author wangjian
 * @date 2019/8/15 10:52
 */
public class Main {
    public static void main(String[] args) throws IOException {
        Resource resource = new ClassPathResource("test.txt");
        File file=resource.getFile();
        FileInputStream fileInputStream=new FileInputStream(file);
        System.out.println(file.getAbsoluteFile());
    }
}
